import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'base_maintain_project' })
export default class BaseMaintainProject extends BaseEntity {
  @Column({
    type: 'varchar',
    unique: true,
    length: 50,
    name: 'maintain_project_code',
    comment: '保养项目编码',
  })
  @ApiProperty()
  maintainProjectCode: string;

  @Column({ type: 'varchar', length: 100, name: 'maintain_project_name', comment: '保养项目名称' })
  @ApiProperty()
  maintainProjectName: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
